#!/usr/bin/env node
const Koa=require('koa'),
      Router=require('koa-router'),
      router=new Router,
      bodyparser=require('koa-bodyparser'),
      tasks=require('./routes/tasks'),
      log=console.log;
const app=new Koa();
app.use(bodyparser({enableTypes:['json','form','text']}));
app.use(tasks.routes());
app.listen(8080);

